With iOS 18, Text has a new initializer that takes in a TimeDataSource and a DiscreteFormatStyle.
Similar to this question, I'd like to make a compact timer but can't find a way to do that with any of the system formats.
Since the new API takes in a DiscreteFormatStyle though I figure I could make my own. This works in an app but not in a Live Activity; in Previews it crashes and in the simulator the view looks like placeholder.
Are custom format styles not supported in this case? Or might there something wrong with my implementation?
Formatter
Preview Crash Log
2
2
579